{extend name="public/common"} {block name="body"}
<style type="text/css">
	.ul_tab {
            height: 40px;
            background-color: #e5e5e5;
    		border-bottom: 1px solid #e4e7ed;
        }

        .ul_tab li {
            position: relative;
            float: left;
            width: 112px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            margin-left: -1px;
            cursor: pointer;
        }

        .ul_tab span {
            position: absolute;
		    right: 0;
		    top: 13px;
		    background: #636363;
		    width: 1px;
		    height: 14px;
		    overflow: hidden;
        }
</style>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    玩家管理
    <span class="c-gray en">&gt;</span>
    会员管理
    <span class="c-gray en">&gt;</span>
    在线会员
    <a class="btn btn-success radius r"
      style="line-height: 1.6em; margin-top: 3px"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>



<div style="padding:20px;height:30px;">
  	
  	<div class="new_box">
  		<div style="width: 100%;height: 50px;">
		  	<ul class="ul_tab">
		        <li class="tab-item"><a  href="{:url('member/us_list')}">全部会员</a><span>◆</span></li>
		        <li class="tab-item active"><a style="color: white;" href="{:url('member/zxus_list')}">在线会员</a><span>◆</span></li>
		        <li class="tab-item"><a href="{:url('member/us_list')}?us=7">启用会员</a><span>◆</span></li>
		        <li class="tab-item"><a href="{:url('member/us_list')}?us=6">冻结会员</a><span>◆</span></li>
		        
		    </ul>
  		</div>
  		
	 	
	 	<div class="products">
	        <div class="main selected">
	            
	            
	            <div class="text-c" style="padding :20px 0;">
    <form action="/admin/member/zxus_list" enctype="application/x-www-form-urlencoded" method="post" style="margin-left:20px;float:left;">
    	<input type="text" name="key_user" id="key_user" value="{$key_user}" placeholder=" 用户名" style="width:150px;border-radius: 5px;" class="input-text">
     	<button class="btn btn-success" type="submit" style="margin-right:20px;border-radius: 5px;"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
   </form>
  </div>
	            
	             <div class="page-container dataTables_wrapper">
  <div id="tab-system" class="HuiTab">
    <div class="tabCon">
      <div class="mt-20">
        <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
          <thead>
            <tr class="text-c">
              <th>ID</th>
              <th>用户名</th>
              <th>会员等级</th>
              <th>账户余额</th>
              <th>登录IP</th>
              <th>登录来源</th>
              <th>在线时长</th>
              <th>登录时间</th>
              <th>备注信息</th>
              <th>操作</th>
            </tr>
         
          </thead>
           {volist name="zaixian_list" id="zaixian_single"}
          <tbody>
          
            <tr class="text-c">
              <td>{$zaixian_single.id}</td>
              <td {if condition="$zaixian_single['nbzh'] == 1"}style="color:blue"{elseif condition="$zaixian_single['swzh'] == 1"}style="color:red"{/if}>{$zaixian_single.username}</td>
              <td>{$zaixian_single.class_name}</td>
              <td>{$zaixian_single.je}</td>
              <td>{$zaixian_single.login_ip}</td>
              <td>{if condition="$zaixian_single.current_from eq 1"}
                      电脑端
                      {elseif condition="$zaixian_single.current_from eq 2"/}
                      手机H5版
                      {elseif condition="$zaixian_single.current_from eq 3"/}
                      安卓App
                      {elseif condition="$zaixian_single.current_from eq 4"/}
                      苹果App
                      {else}
                      未知
                      {/if}</td>
              <td>{$zaixian_single.time_lingt}</td>
              <td>{$zaixian_single.login_time}</td>
              <td>{$zaixian_single.beizhu}</td>
              <td>
                <a href="{:url('member/GoOut')}?usern={$zaixian_single.username}" title='踢下线'>踢出</a>
              </td>
                 {/volist}
            </tr>
          
          </tbody>
        </table>
      </div>
    </div>
  </div>
  <div class="dataTables_paginate paging_simple_numbers" style="width:100%;">
      <div style="float:left;">  
            每页显示<select name="limit" style="height:26px;" id="code">
                <option value="20" {if condition="$limit eq 20"}selected{/if}>
                    20
                  </option>
                  <option value="50" {if condition="$limit eq 50"}selected{/if}>
                    50
                  </option>
                  <option value="100" {if condition="$limit eq 100"}selected{/if}>
                    100
                  </option>
             </select>页
              </div>
    	<span style="float:right;margin-left:-2px;">总共{$zaixian_list->lastPage()}页  当前第{$zaixian_list->currentPage()}页 ，共{$zaixian_list->total()}条</span>
	     <div style="float:left;">{$zaixian_list->render()}</div>
    </div>
</div>
	            
	            
	            
	            
	        </div>
	       
    	</div>
  		
  	</div>
  	

  	
  </div>

{/block}

{block name="js"} 
<script type="text/javascript">
    $(function() {
  $('.skin-minimal input').iCheck({
    checkboxClass : 'icheckbox-blue',
    radioClass : 'iradio-blue',
    increaseArea : '20%'
  });
  $("#tab-system").Huitab({
    index : 0
  });
});
  $("#code").on('change',function(){
    var id = $(this).find('option:selected').val();
    var key_user=$("#key_user").val();
    
    window.location.href="/admin/member/zxus_list?limit="+id+"&key_user="+key_user;
  })  
</script>
{/block}
 


